<template>
    <div>
        <div>支付页面</div>
        <div>下单成功。订单号是：{{ this.$route.query.orderNo }}</div>
        <div>选择支付方式：
            <el-radio-group>
                <el-radio :label="3">微信支付</el-radio>
                <el-radio :label="6">支付宝支付</el-radio>
                <el-radio :label="9">银联卡支付</el-radio>
            </el-radio-group>
        </div>
        <div><el-button @click="pay">立即支付</el-button></div>
    </div>
</template>

<script>
export default {
    methods: {
        pay() {
            let url = 'http://localhost:5286/order/pay?orderNo=' + this.$route.query.orderNo + '&payType=0'
            this.$http.get(url).then(res => {
                //跳转到支付成功页面
                console.log(res)
            })
        }
    }
}
</script>